 #-*- coding: utf-8 -*-

from openerp import models, fields, api, exceptions

class visitlog(models.Model):
    _name = 'sale.visitlog'
    
    date_visit=fields.Date(string="Visitdate")
    visitcontent=fields.Text(string="Visitcontent")
    technician_ids=fields.Many2one('res.partner',string="Technician",domain=['|',('technician','=',True),('category_id.name','ilike','Tech')])
    project_id=fields.Many2one('sale.project',ondelete='cascade',string="Project",required=True)
    
